﻿<Window x:Class="PrintView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PrintView" Height="600" Width="816">
    <DockPanel>
        <ToolBarTray DockPanel.Dock="Top" HorizontalAlignment="Stretch">
            <ToolBarTray.Resources>

            </ToolBarTray.Resources>
            <ToolBar MinHeight="20">
                <Button Name="btnPrint"  
                        Click="btnPrint_Click" Content="Print" />
                <Button Name="btnClose" 
                        Click="btnClose_Click"
                        Content="Close" />
            </ToolBar>
        </ToolBarTray>
        
        <FlowDocumentScrollViewer>
            <FlowDocument Name="PrintDocument" 
                          FontFamily="Calibri"
                          PageHeight="720"
                          PageWidth="960"
                          PagePadding="24"
                          ColumnWidth="400"
                          FontSize="11">
                <Table BorderBrush="Black"
                       BorderThickness="1">
                    <Table.Columns>
                        <TableColumn Width="600" />
                        <TableColumn Width="95" />
                        <TableColumn Width="30" />
                        <TableColumn Width="95" />
                        <TableColumn Width="30" />
                        <TableColumn Width="50" />
                    </Table.Columns>
                    
                    <TableRowGroup>
                        <TableRowGroup.Resources>
                            <Style TargetType="TableCell">
                                <Setter Property="TextAlignment" Value="Center" />
                                <Setter Property="BorderBrush" Value="White" />
                                <Setter Property="BorderThickness" Value="1" />
                                <Setter Property="FontWeight" Value="Bold" />
                                <Setter Property="Foreground" Value="White" />
                            </Style>  
                            
                        </TableRowGroup.Resources>
                        <TableRow Background="Navy">
                            <TableCell>
                                <Paragraph>
                                    <Run Text="Type Name" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>
                                    <Run Text="Count" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>
                                    <Run Text="%" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>
                                    <Run Text="Size" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>
                                    <Run Text="%" />
                                </Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>
                                    <Run Text="MT" />
                                </Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                    
                    <TableRowGroup Name="ResultsRows" >
                        <TableRowGroup.Resources>
                            <Style TargetType="TableCell">
                                <Setter Property="TextAlignment" Value="Center" />
                                <Setter Property="BorderBrush" Value="Black" />
                                <Setter Property="BorderThickness" Value="0,0,1,1" />
                            </Style>  
                        </TableRowGroup.Resources>
                        
                    </TableRowGroup>
                </Table>

            </FlowDocument>
        </FlowDocumentScrollViewer>
        
    </DockPanel>
</Window>
